package com.itheima.health.service;

import com.itheima.health.pojo.OrderSetting;
import com.itheima.health.pojo.OrderSettingDto;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author spt
 * @description 预约设置SERVICE
 * @date 2019/9/29
 **/
public interface OrderSettingService {


    List<OrderSettingDto> getOrderSettingByMonth(Integer year, Integer month);

    boolean add(OrderSetting orderSetting);

    void addBatch(List<ArrayList<String>> sheetData);

    /* 修改预约数量 */
    boolean updateNumberByDate(int number, Date orderDate);

    /* 通过指定时间返回OrderSetting */
    OrderSetting findByDate(Date orderDate);

    /* 通过指定时间返回剩余预约数 */
    Integer findRereservationsByDate(Date date);
}
